package infomation.view 
{
	import flash.filters.DropShadowFilter;
	import ui.infomation.ActionInfoUI;
	
	/**
	 * 行军场景中显示机动力，金，米
	 * @author WLDragon 2014-03-19
	 */
	public class ActionInfo extends ActionInfoUI 
	{
		
		public function ActionInfo() 
		{
			super();
			this.x = 420;
			this.y = 10;
			this.visible = false;
			
			var df:DropShadowFilter = new DropShadowFilter(2,45,0,1,2,2,5,1);
			this.filters = [df];
		}
		
		public function update(date:int,gold:int,rice:int,step:int):void
		{
			btDate.text = date.toString();
			btGold.text = gold.toString();
			btRice.text = rice.toString();
			btStep.text = step.toString();
			
			App.timer.doLoop(800,timeHandle);
		}
		
		public function clearTime():void
		{
			App.timer.clearTimer(timeHandle);
		}
		
		private function timeHandle():void 
		{
			this.visible = !this.visible;
		}
		
	}

}